import http from '@/utils/http'
export function selectProfitSharePage(params) {
  const url =
    '/profitShare-management/profitShare-management/selectProfitSharePage'
  return http.post(url, params)
}

export function addOrUpdateProfitShare(params) {
  const url =
    '/profitShare-management/profitShare-management/addOrUpdateProfitShare'
  return http.post(url, params)
}

export function delProfitShare(params) {
  const url = '/profitShare-management/profitShare-management/delProfitShare'
  return http.post(url, params)
}

export function batchAddprofitShare(params) {
  const url =
    '/profitShare-management/profitShare-management/batchAddprofitShare'
  return http.request({
    method: 'post',
    url: url,
    data: params,
    responseType: 'blob',
  })
}

export function batchDelprofitShare(params) {
  const url =
    '/profitShare-management/profitShare-management/batchDelprofitShare'
  return http.request({
    method: 'post',
    url: url,
    data: params,
    responseType: 'blob',
  })
}
